home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / john / hc_showd.hqx / ShowDialog XCMD 1.4 / card_6989.txt < prev    next >
Encoding:
Text File  |  1989-08-30  |  1.3 KB  |  31 lines

  1. -- card: 6989 from stack: in.4
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2607
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 2
  9. ----- text -----
  10. ShowDialog XCMD Type 4
  11.  
  12. -- part contents for background part 3
  13. ----- text -----
  14. ShowDialog XCMD Type 4: PopUp Menus
  15.  
  16. -- part contents for background part 1
  17. ----- text -----
  18.  
  19.  
  20. ShowDialog XCMD Type 4  displays an "ask" or "answer" dialog that contains a popup menu.  
  21.  
  22. The items in the popup menu are constructed on the fly by passing to ShowDialog a variable containing the items that you would like to appear in the menu, separated by commas.  You can modify the style attributes of the individual menu items, enable and disable them, and even attach icons to them, all on the fly.
  23.  
  24. You also tell ShowDialog which one of the menu items is to be checked when the dialog is initially displayed.  When the OK button is clicked, "the result" will contain the item number from the menu that was currently selected.
  25.  
  26. HyperCard runs on System 3.2 and above, but popup menus were not implemented in the Toolbox until System 4.0.  ShowDialog first checks your system configuration and then exits gracefully 
  27. (with a beep) if you are running an early system, thus saving you from a fiery crash.
  28.  
  29. -- part contents for background part 7
  30. ----- text -----
  31. 16